package ooday01;
/**构造方法的演示*/
public class ConsDemo {
    public static void main(String[] args) {
        Car qc = new Car();
        qc.brand = "名爵";
        qc.color = "绿色";
        qc.price = 270000;

        qc.run();
        qc.start();
        qc.stop();

        Car car2 = new Car("名爵","绿色",40);
        car2.start();
        car2.run();
        car2.stop();

        Car car3 = new Car("长安","白色",80);
        car3.start();
        car3.run();
        car3.stop();






    }
}
